/**  File: mapbuilder.h
 *   Author: Jaideep Balekar
 *           Department of Computer Science
 *           Texas A&M University
 *           315 - Programming Studio
 * Due Date: December 6th, 2009 @ 11:59
 * Contents: Build the game map by taking the input from inmap.txt file.
 */

#ifndef MAPBUILDER_H
#define MAPBUILDER_H

#include <QFile>
#include <QTextStream>
#include <QString>
#include <QMap>

struct CoordChar //structure used in a list to store coordinates.
{
    int xcoord;
    int ycoord;
    int symbol;
};

class MapBuilder : public QFile //MapBuilder class - builds game map from input text file
{
public:
	//Constructor / Destructor
    MapBuilder();
    ~MapBuilder();
	
	//Methods
    void fileRead();
	
	//datastructures
    QMap<QString, CoordChar> map;			//stores the map of walls using the "+" signs in inmap.txt
    QMap<QString, CoordChar> dotmap;		//stores the map of dots (pacman food) 
    QMap<QString, CoordChar> powerdotmap;	//stores the map of big dots 
    QMap<QString, CoordChar> sceneItemsMap;
	// the above maps form the overall game map
private:
	//variables
    
    int xcoord;
    int ycoord;
};

#endif // MAPBUILDER_H

